
class_name SceneUI
extends CanvasLayer




## 准备面板
@onready var prepare_plan = $PreparePlan
## 行动列表面板
@onready var queue_plan = $QueuePlan
## unit 信息面板
@onready var unit_info_plan = $UnitInfoPlan
## 战斗结算面板
@onready var result_plan = $ResultPlan
## 图块信息面板
@onready var cell_info_plan = $CellInfoPlan
## 游戏信息面板
@onready var game_info_plan = $GameInfoPlan




# 显示游戏信息面板
func show_game_info_plan() -> void:
	game_info_plan.start()




# 隐藏游戏信息面板
func hide_game_info_plan() -> void:
	game_info_plan.end()




# 显示图块面板
func show_cell_info_plan(_cell_info: Dictionary) -> void:
	cell_info_plan.update(_cell_info)
	cell_info_plan.start()




# 隐藏结果面板
func hide_cell_info_plan() -> void:
	cell_info_plan.end()




# 显示结果面板
func show_result_plan(_result: String) -> void:
	result_plan.camp.text = _result
	result_plan.start()




# 隐藏结果面板
func hide_result_plan() -> void:
	result_plan.end()




# 显示准备面板
func show_prepare_plan() -> void:
	prepare_plan.set_process_input(true)
	prepare_plan.show()




# 隐藏准备面板
func hide_prepare_plan() -> void:
	prepare_plan.set_process_input(false)
	prepare_plan.hide()




# 显示行动列表面板
func show_queue_plan() -> void:
	queue_plan.show()




# 隐藏行动列表面板
func hide_queue_plan() -> void:
	queue_plan.hide()




# 显示 unit 信息面板
func show_unit_info_plan() -> void:
	unit_info_plan.show()




# 隐藏 unit 信息面板
func hide_unit_info_plan() -> void:
	unit_info_plan.hide()
